
import 'package:freezed_annotation/freezed_annotation.dart';

part 'WordMappingVo.g.dart';

///WordMappingVo
@JsonSerializable()
class WordMappingVo {

  ///词书ID
  @JsonKey(name: "bookId")
  String? bookId;

  ///创建时间
  @JsonKey(name: "createTime")
  String? createTime;

  ///例句
  @JsonKey(name: "example")
  String? example;

  ///例句翻译
  @JsonKey(name: "exampleTran")
  String? exampleTran;

  ///雪花ID
  @JsonKey(name: "id")
  String? id;

  ///翻译
  @JsonKey(name: "tran")
  String? tran;

  ///最近一次更新时间
  @JsonKey(name: "updateTime")
  String? updateTime;

  ///单词
  @JsonKey(name: "word")
  String? word;

  WordMappingVo({
    this.bookId,
    this.createTime,
    this.example,
    this.exampleTran,
    this.id,
    this.tran,
    this.updateTime,
    this.word,
  });

  factory WordMappingVo.fromJson(Map<String, dynamic> json) => _$WordMappingVoFromJson(json);

  Map<String, dynamic> toJson() => _$WordMappingVoToJson(this);
}